package com.panshi.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AppMatterT对象", description="问题表")
public class AppMatter implements Serializable {

    @ApiModelProperty(value = "主键id")
    private Integer matterId; // 问题id

    @ApiModelProperty(value = "分类id")
    private Integer classifyId; // 分类id

    @ApiModelProperty(value = "用户id")
    private Integer userId; // 用户id

    @ApiModelProperty(value = "问题标题")
    private String matterTitle; // 问题标题

    @ApiModelProperty(value = "问题背景")
    private String matterContent; // 问题背景

    @ApiModelProperty(value = "上架时间")
    private String groundTime; // 上架时间

    @ApiModelProperty(value = "问题阅读量")
    private Long readCount; // 阅读量

    @ApiModelProperty(value = "问题收藏量")
    private Long collectCount; // 收藏量

    @ApiModelProperty(value = "问题回答量")
    private Long answerCount; // 回答量

    @ApiModelProperty(value = "是否置顶: y是; n否")
    private String matterIsTop; // 是否置顶

    @ApiModelProperty(value = "问题回答集合")
    private List<AppAnswer> answersList;

    @ApiModelProperty(value = "问题用户")
    private AppUser appUser;

   // @ApiModelProperty(value = "问题评论集合")
    //private List<AppComment> commentList;

}
